package com.cee.admin.config.shiro.jwt;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author Administrator
 */
@Component
@ConfigurationProperties(prefix = "jwt")
@Data
@Accessors(chain = true)
public class JwtProperties {

    /**
     * 请求头
     */
    private String header;

    /**
     * 密钥
     */
    private String secret;

    /**
     * 有效时间
     */
    private Long expiration;

    /**
     * token头
     */
    private String tokenHead;

    /**
     * 允许刷新时间
     */
    private int allowRefreshTime;
}
